import request from '@/utils/request'

export const getTouristPage = (page, size) => {
  return request({
    url: '/system/tourist/list',
    method: 'GET',
    params: {
      page, size
    }
  })
}

export const searchTouristListPage = (searchForm, page, size) => {
  return request({
    url: '/system/tourist/search',
    method: 'POST',
    params: {
      page, size
    },
    data: searchForm
  })
}

export const updateTouristStatus = (id, forbidden) => {
  return request({
    url: '/system/tourist/forbidden',
    method: 'PUT',
    params: {
      id, forbidden
    }
  })
}
